home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / c / mc51bugs.zip / Q30564 < prev    next >
Text File  |  1988-07-29  |  1KB  |  55 lines

  1. Q30564 Internal Compiler Error: code.c 1.46, Line 439
  2. C Compiler
  3. 5.10
  4. MS-DOS
  5.  
  6. Summary:
  7.    The following program, when compiled with the command line switch
  8. /Ol, will cause the compiler to generate the following error:
  9.  
  10.      fatal error C1001: Internal Compiler Error
  11.      (compiler file '@(#)code.c:1.46', line 439)
  12.         Contact Microsoft Technical Support
  13.  
  14. crosshar (whc)
  15. long whc;
  16. {
  17. unsigned int ax, cy, offset;
  18. unsigned char far *byte;
  19. int xh[13][15];
  20.  
  21.     for (cy = 0; cy <= 12; ++cy)
  22.     {
  23.         for (ax = 0; ax <= 14; ++ax)
  24.         {
  25.             if (xh[cy][ax])
  26.             {
  27.                 byte = (unsigned char far *) (0xB0000000) + offset;
  28.             }
  29.         }
  30.     }
  31. }
  32.  
  33. More Information:
  34.    Microsoft has confirmed this to be a problem in Version 5.10
  35. of the C compiler.
  36.    You can work around the problem by changing the code in the IF
  37. statement as follows:
  38.                   .
  39.                   .
  40.             if (xh[cy][ax])
  41.             {
  42.                 unsigned long i;
  43.                 i = 0xb0000000L + offset;
  44.                 byte = (unsigned char far *) i;
  45.             }
  46.                   .
  47.                   .
  48.    Microsoft is researching this problem and will post new information
  49. as it becomes available.
  50.  
  51.  
  52.  
  53. Keywords:  buglist5.10 qfbv
  54. Updated  88/07/29 14:28
  55.